projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c15fa9
)
css: Fix border value parsing
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 4 Feb 2021 05:11:42 +0000
(
00:11
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 4 Feb 2021 05:12:51 +0000
(
00:12
-0500)
This function was not resetting computed as it meant
to because the last loop was never executed.
Pointed out in https://www.viva64.com/en/b/0793/
gtk/gtkcssbordervalue.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssbordervalue.c
b/gtk/gtkcssbordervalue.c
index 7e5c32b86b44720a406ad2d7d04b5c1b41188f1e..a9b9ef00015426e76406fb5ff081ef90ffc451ef 100644
(file)
--- a/
gtk/gtkcssbordervalue.c
+++ b/
gtk/gtkcssbordervalue.c
@@
-218,7
+218,7
@@
_gtk_css_border_value_parse (GtkCssParser *parser,
}
result->is_computed = TRUE;
- for (; i < 4; i++)
+ for (
i = 0
; i < 4; i++)
if (result->values[i] && !gtk_css_value_is_computed (result->values[i]))
{
result->is_computed = FALSE;